﻿@model IEnumerable<KKU.RBSFPP.Shared.DAC.FactorValue>
@{
    ViewBag.Title = "Update";
}
@Html.Partial("_FactorManagement")


@{ var data = Model.ToList(); }
@using (Html.BeginForm())
{
    <table class="table table-hover">
        <tr>
            <th>ปัจจัยที่เกี่ยวข้อง</th>
            <th>ราคา</th>
        </tr>
        <tr>
            <td>@data[0].Factor.Description</td>
            <td>@Html.TextBox("Factor11", @data[0].Value)
                @Html.ValidationMessage("Factor11")
            </td>
               
        </tr>
        <tr>
            <td>@data[1].Factor.Description</td>
            <td>@Html.TextBox("Factor12", @data[1].Value)
                @Html.ValidationMessage("Factor12")
            </td>
        </tr>
        <tr>
            <td>@data[2].Factor.Description</td>
            <td>@Html.TextBox("Factor13", @data[2].Value)
                @Html.ValidationMessage("Factor13")
            </td>
        </tr>
        <tr>
            <td>@data[3].Factor.Description</td>
            <td>@Html.TextBox("Factor14", @data[3].Value)
                @Html.ValidationMessage("Factor14")
            </td>
        </tr>
    </table>
    <a href =@Url.Action("Index", "Factor") class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> ยกเลิก</a>
    <button type="submit" class="btn btn-success" span class="glyphicon glyphicon-ok-circle">บันทึก</button>
}